<?php

class HomeController extends BaseController {

    protected $layout = 'layouts.application';
	public function __construct() {
		parent::__construct();
	}

    public function index() {
        $view = View::make('home.index')->with(array(
        ));
        
        $this->layout->content = $view;
    }

    /**
     * show page login (admin)
     * @author Thuan Truong
     */
    public function adminLogin() {
        $is_login = BaseController::isLogin();
        $this->layout = View::make('layouts.admin_login');
        $view = View::make('home.admin_login')->with(array(
        ));
        
        $this->layout->content = $view;
    }

    /**
     * show admin panel 
     * @author Thuan Truong
     */
    public function adminPanel() {
        $is_login = BaseController::isLogin();
        $this->layout = View::make('layouts.admin');
        $view = View::make('home.dashboard')->with(array(
        ));
        
        $this->layout->content = $view;
    }

}
